/*
 * pos.h
 *
 *  Created on: May 27, 2025
 *      Author: lsy18
 */

#ifndef HARDWARE_POS_POS_H_
#define HARDWARE_POS_POS_H_

#include "usart.h"

#define huart_pos huart2
#define hdma_pos hdma_usart2_rx

#define wit_receivw_size 0x0B
#define wit_star 0x55

typedef struct
{
	uint8_t receive_num;
	uint8_t uart_buff[256];
	uint8_t uart_bit_buff;
	uint8_t buff_num;
	uint8_t dma_receive_num;
}DMA_STURCT;

void pos_init();
void pos_exam();
//void HAL_DMA_XferHalfCpltCallback(DMA_HandleTypeDef *hdma);

extern DMA_STURCT pos_dma;

#endif /* HARDWARE_POS_POS_H_ */
